// import VueClickAwayExample from "../components/VueClickAwayExample.vue";
const pkg = require('../../package.json')

module.exports = {
  lang: 'en-US',
  title: '主页',
  // gitee pages 配置
  base: '/e-b-it/',
  description: 'Vite & Vue powered static site generator.',
  head: [['meta', { name: 'theme-color', content: 'red' }]],
  markdown: {
    // 显示行号
    // lineNumbers: true,
    headers: {
      level: [0, 1]
    }
  },
  themeConfig: {
    logo: '/logo.png',
    // 网站标题
    siteTitle: '',
    // 社交账户链接
    // socialLinks: [
    //   {
    //     icon: {
    //         svg: '<svg t="1671270414569" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2135" width="64" height="64"><path d="M512 0c282.784 0 512 229.216 512 512s-229.216 512-512 512S0 794.784 0 512 229.216 0 512 0z m189.952 752l11.2-108.224c-31.904 9.536-100.928 16.128-147.712 16.128-134.464 0-205.728-47.296-195.328-146.304 11.584-110.688 113.152-145.696 232.64-145.696 54.784 0 122.432 8.8 151.296 18.336L768 272.704C724.544 262.24 678.272 256 599.584 256c-203.2 0-388.704 94.88-406.4 263.488C178.336 660.96 303.584 768 535.616 768c80.672 0 138.464-6.432 166.336-16z" fill="#CE000D" p-id="2136"></path></svg>'
    //     },
    //     link: 'https://blog.csdn.net/GISShiXiSheng'
    //   }
    // ],
    nav: nav(),
    sidebar: {
      '/it/': sidebarItDoc(),
      '/wiki/': sidebarWiki(),
      '/company/baidu/': sidebarBr(),
      '/company/br/': sidebarBr(),
      '/website/': sidebarWebsite(),
      '/taiji/': sidebarTaiji(),
      '/wealth/': sidebarWealth(),
      '/operate/': sidebarOperate(),
      '/millions/': sidebarMillions(),
    },
    // 右侧边栏标题
    outline: 'deep',
    outlineTitle: '章节导航',

    // 上下篇文本提示文字
    docFooter: {
      prev: '←上一篇',
      next: '下一篇→'
    },

    // 上次更新时间提示文字
    lastUpdatedText: '上次更新时间',

    // 编辑链接
    // editLink: {
    //     text: '我的博客',
    //     pattern: 'https://www.csdn.net/'
    // },

    // 页面底部
    footer: {
      message: '',
      copyright: 'Copyright © 2022 LZUGIS'
    },
    // algolia: {
    //   apiKey: 'your_api_key',
    //   indexName: 'index_name'
    // }
  },
  // enhanceApp({ app }) {
  //   app.component('VueClickAwayExample', VueClickAwayExample)
  // },
}

// 导航
function nav() {
  return [
    { 
      text: '公司', 
      items: [
        {
          text: '百融云创', 
          link: '/company/br/',
          activeMatch: '/company/br/'
        }
      ]
    },
    { text: '财富管理', link: '/wealth/', activeMatch: '/wealth/' }
  ]
}

// 案例
function sidebarGuide() {
  return [
    {
      text: 'Introduction',
      collapsible: true,
      items: [
        { text: 'What is VitePress?', link: '/guide/what-is-vitepress' },
      ]
    },
  ]
}
function sidebarItDoc() {
  return [
    {
      text: '前端',
      collapsible: true,
      items: [
        { text: 'HTML', link: '/guide/what-is-vitepress' },
      ]
    },
  ]
}
function sidebarWiki() {
  return [
    {
      text: '知识库',
      collapsible: true,
      items: [
        { text: '为什么创建博客', link: '/wiki/create-blog' },
        { text: '日拱一卒', link: '/operate/archAPawn' },
      ]
    },
  ]
}

function sidebarOperate() {
  return [
    {
      text: '操作记录',
      link: '/operate/archAPawn',
      items: [
        { text: '博客空间日志', link: '/operate/wsp' },
        { text: '问题记录', link: '/operate/problems' },
      ]
    }
  ]
}

function sidebarWebsite() {
  return [
    {
      text: '网站',
      items: [
        { text: '网站', link: '/website/site' },
      ]
    }
  ]
}
function sidebarTaiji() {
  return [
    {
      text: '饮食规则',
      items: [
        { text: '网站', link: '/website/site' },
      ]
    },
    {
      text: '保健养身秘方',
      items: [
        { text: '网站', link: '/website/site' },
      ]
    },
    {
      text: '身体',
      items: [
        { text: '网站', link: '/website/site' },
      ]
    },
    {
      text: '就医|体检记录',
      items: [
        { text: '2022', link: '/taiji/medical/2022' },
      ]
    },
  ]
}
function sidebarWealth() {
  return [
    {
      text: '信用',
      items: [
        { text: '征信', link: '/wealth/credit/index' },
      ]
    },
    {
      text: '打工人',
      items: [
        { text: '百万年薪', link: '/millions/' },
      ]
    },
    {
      text: '投资',
      items: [
        { 
          text: '吕晓彤', 
          items: [
            { text: '主页', link: '/wealth/lvxiaotong/index' },
            { text: '底层逻辑', link: '/wealth/lvxiaotong/logic' },
            { 
              text: '行业分析',
              items: [
                { text: '日期2023', link: '/wealth/lvxiaotong/weekly-analysis/2020130' },
              ]
            },
            { 
              text: '连麦',
              items: [
                { text: '日期2023', link: '/wealth/lvxiaotong/weekly-online/2020130' },
              ]
            },
          ]
        },
        { 
          text: '股票', 
          items: [
            { text: '主页', link: '/wealth/stock/' },
          ]
        },
        { 
          text: '基金', 
          items: [
            { text: '主页', link: '/wealth/fund/' },
          ]
        },
      ]
    },
    {
      text: '借',
      items: [
        { text: '汇总', link: '/wealth/bank/index' },
        { text: '中信银行', link: '/wealth/bank/citic' },
      ]
    },
    {
      text: '抢',
      items: [
        { text: '资源', link: '/website/site' },
      ]
    },
  ]
}

function sidebarBr() {
  return [
    {
      text: '公司介绍',
      items: [
        { text: '介绍', link: '/company/br/introduce/introduce' },
        { text: '业务结构', link: '/company/br/introduce/prod' },
        { text: '人员职责', link: '/company/br/introduce/staff' },
      ]
    },
    {
      text: '百融业务',
      items: [
        { text: '产品', link: '/company/br/comp-libs/uxd-ui' },
      ]
    },
    {
      text: '百融组件库',
      items: [
        { text: 'uxd-ui', link: '/company/br/comp-libs/uxd-ui' },
      ]
    },
    {
      text: '项目',
      items: [
        { text: '策略引擎', link: '/company/br/project/策略引擎' },
        { text: '存量监控', link: '/company/br/project/存量监控' },
        { text: '规则引擎', link: '/company/br/project/规则引擎' },
        { text: '企业征信', link: '/company/br/project/企业征信' },
        { text: '应用研发部项目', link: '/company/br/project/应用研发部项目' },
        { text: '云鉴资管平台', link: '/company/br/project/云鉴资管平台' },
        { text: '云鉴-公司内部系统对接方案整理', link: '/company/br/project/云鉴-公司内部系统对接方案整理' },
        { text: '智能营销', link: '/company/br/project/智能营销' },
      ]
    },
    {
      text: '日常记录',
      items: [
        { text: '百融云创2021-2022上半年', link: '/company/br/summary/百融云创2021-2022上半年' },
        { text: '百融云创2022下半年', link: '/company/br/summary/百融云创2022下半年' },
        { text: '百融云创2023上半年', link: '/company/br/summary/2023-Q1Q2' },
      ]
    },
    {
      text: '年会',
      items: [
        { text: '2022', link: '/company/br/annual-meeting/2022' },
        { text: '2021', link: '/company/br/annual-meeting/2021' },
      ]
    },
    {
      text: '企业文化',
      items: [
        { text: '年度绩效计划', link: '/company/br/cultrue/performance' },
        { text: '评分标准', link: '/company/br/cultrue/' },
      ]
    },
  ]
}
function sidebarMillions() {
  return [
    {
      text: '百万',
      items: [
        { text: '决策能力', link: '/millions/decision' },
        { text: '求职能力', link: '/millions/job-hunting' },
        { text: '编程能力', link: '/millions/programming' },
        { text: '项目能力', link: '/millions/project' },
        { text: '团队能力', link: '/millions/team' },
      ]
    }
  ]
}
